import React from 'react'

export default class ContextProvider extends React.Component {
	static childContextTypes = {
		user: React.PropTypes.object,
		userAction: React.PropTypes.object
	};
	getChildContext() {

		const {
			user,
			userAction
		} = this.props;

		return {
			user,
			userAction
		};
	}
	render(){
		return this.props.children;
	}
};